import request from '@/utils/request'
// -------- 问金配比 --------
let BASE_ADDRESS = '/financial/voucherRatio'
// 分页查询

export const getVoucherRatioListApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

// 问金发放 分页查询
export const getVoucherVoucherRatioGrantApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/voucherRatioGrant`,
        method: 'get',
        params: data
    })
}

// 修改
export const getVoucherRatioEditApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}
// 删除
export const getVoucherRatioStatusApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}



// 根据id查询
export const getVoucherRatioGetInfoApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}

//添加
export const getVoucherRatioAddApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}